package com.jtjrenren.android.taxi.passenger.utils;

import android.content.Context;
import android.content.Intent;

import com.jtjrenren.android.taxi.passenger.core.web.AppShowHtmlActivity;

/**
 * Created by Administrator on 2016/2/25.
 */
public class ActivityIntentUtils {
    /**
     * 展示网页的url跳转
     *
     * @param context
     * @param url
     * @param title
     * @param isShowTitle
     */
    public static void showHtmlActivity(Context context, String url, String title, boolean isShowTitle) {
        Intent intent = new Intent(context, AppShowHtmlActivity.class);
        intent.putExtra(AppShowHtmlActivity.EXTRAS_URL, url);
        intent.putExtra(AppShowHtmlActivity.EXTRAS_TITLE, title);
        intent.putExtra(AppShowHtmlActivity.EXTRAS_TITLE_SHOW, isShowTitle);
        context.startActivity(intent);
    }

}
